package com.lindroy.androidplayer.ui.widget

import android.content.Context
import android.util.AttributeSet
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import com.lindroy.androidplayer.utils.primaryColor

/**
 * @author Lin
 * @date 2022/1/23
 * @function 自定义 SwipeRefreshLayout，设置旋转条颜色
 */
class CustomSwipeRefreshLayout @JvmOverloads constructor(
    context: Context,
    attr: AttributeSet? = null
) : SwipeRefreshLayout(context, attr) {
    init {
        this.setColorSchemeColors(context.primaryColor)
    }
}